package com.lighting.module4.dto;

import java.io.Serializable;

/**
 * 这是一个【JavaBean】
 * 用来专门存储数据
 */
public class Calculator implements Serializable {
    //字段
    private double p;  //本金
    private int m;     //月份
    private double yr; //年利率

    public double getP() {
        return p;
    }

    public void setP(double p) {
        this.p = p;
    }

    public int getM() {
        return m;
    }

    public void setM(int m) {
        this.m = m;
    }

    public double getYr() {
        return yr;
    }

    public void setYr(double yr) {
        this.yr = yr;
    }

    //构造方法
    public Calculator(double p, int m, double yr) {
        this.p = p;
        this.m = m;
        this.yr = yr;
    }

    public Calculator() {
    }
}
